<html data-dpr="1" style="font-size: 37.5px;">
 <head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" />
  <meta id="i18n_pagename" content="xiapage-common">
  <title>{:C('sitename')}</title>
  <link href="/ascss/1.css" rel="stylesheet" />
  <link href="/ascss/mui/css/mui.min.css" rel="stylesheet" />
  <link href="/ascss/ek.css" rel="stylesheet" />
  <style type="text/css" title="fading circle style">
  	.circle-color-12 > div::before { background-color: #ccc; }
  	.Cash_num[data-v-8aa9b9ee]{background:none;box-shadow: none;border-radius: 3px;padding:0;padding-top:.2rem}
  	.form-control-type_choose{background-color: #31395e;margin-bottom: 0;padding:9px 12px;border-radius: 3px;}
  	.Cash_num_money input[data-v-8aa9b9ee]{width: calc(100% - 85px);background: #31395e;height: auto;padding: 8px 10px;font-size: 14px;}
  	.Cash_num_money[data-v-23a3b700] {border-color:#555}
  	.form-group{background-color: #32395d;border-bottom: .013333rem solid #161936;}
  </style>
   <script>
    (function (win, lib) {
      var doc = win.document
      var docEl = doc.documentElement
      var metaEl = doc.querySelector('meta[name="viewport"]')
      var flexibleEl = doc.querySelector('meta[name="flexible"]')
      var dpr = 0
      var scale = 0
      var tid
      var flexible = lib.flexible || (lib.flexible = {})
 
      if (metaEl) {
        console.warn('将根据已有的meta标签来设置缩放比例')
        var match = metaEl.getAttribute('content').match(/initial\-scale=([\d\.]+)/)
        if (match) {
          scale = parseFloat(match[1])
          dpr = parseInt(1 / scale)
        }
      } else if (flexibleEl) {
        var content = flexibleEl.getAttribute('content')
        if (content) {
          var initialDpr = content.match(/initial\-dpr=([\d\.]+)/)
          var maximumDpr = content.match(/maximum\-dpr=([\d\.]+)/)
          if (initialDpr) {
            dpr = parseFloat(initialDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
          if (maximumDpr) {
            dpr = parseFloat(maximumDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
        }
      }
 
      if (!dpr && !scale) {
        var isAndroid = win.navigator.appVersion.match(/android/gi)
        var isIPhone = win.navigator.appVersion.match(/iphone/gi)
        var devicePixelRatio = win.devicePixelRatio
//          if (isIPhone) {
//            // iOS下，对于2和3的屏，用2倍的方案，其余的用1倍方案
//            if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {
//              dpr = 3;
//            } else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){
//              dpr = 2;
//            } else {
//              dpr = 1;
//            }
//          } else {
//            // 其他设备下，仍旧使用1倍的方案
//            dpr = 1;
//          }
        dpr = 1
        scale = 1 / dpr
      }
 
      docEl.setAttribute('data-dpr', dpr)
      if (!metaEl) {
        metaEl = doc.createElement('meta')
        metaEl.setAttribute('name', 'viewport')
        metaEl.setAttribute('content', 'initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=no')
        if (docEl.firstElementChild) {
          docEl.firstElementChild.appendChild(metaEl)
        } else {
          var wrap = doc.createElement('div')
          wrap.appendChild(metaEl)
          doc.write(wrap.innerHTML)
        }
      }
 
      function refreshRem () {
        var width = docEl.getBoundingClientRect().width
        if (width / dpr > 540) {
          width = 540 * dpr
        }
        var rem = width / 10
        docEl.style.fontSize = rem + 'px'
        flexible.rem = win.rem = rem
      }
 
      win.addEventListener('resize', function () {
        clearTimeout(tid)
        tid = setTimeout(refreshRem, 300)
      }, false)
      win.addEventListener('pageshow', function (e) {
        if (e.persisted) {
          clearTimeout(tid)
          tid = setTimeout(refreshRem, 300)
        }
      }, false)
 
      if (doc.readyState === 'complete') {
//          doc.body.style.fontSize = 12 * dpr + 'px';
        doc.body.style.fontSize = 16 + 'px'
      } else {
        doc.addEventListener('DOMContentLoaded', function (e) {
//            doc.body.style.fontSize = 12 * dpr + 'px';
          doc.body.style.fontSize = 16 + 'px'
        }, false)
      }
 
      refreshRem()
 
      flexible.dpr = win.dpr = dpr
      flexible.refreshRem = refreshRem
      flexible.rem2px = function (d) {
        var val = parseFloat(d) * this.rem
        if (typeof d === 'string' && d.match(/rem$/)) {
          val += 'px'
        }
        return val
      }
      flexible.px2rem = function (d) {
        var val = parseFloat(d) / this.rem
        if (typeof d === 'string' && d.match(/px$/)) {
          val += 'rem'
        }
        return val
      }
 
    })(window, window['lib'] || (window['lib'] = {}))
  </script>
  <!-- 环境判断:测试、正式 -->
  <script>
    var host = window.location.host
    ;(function isFormalEnv(host){
      if(host.indexOf('kw13.cn') !== -1){
        window.isFormalEnv = true
        window.isTestEnv = false
      } else if(host.indexOf('kwmzy.com') !== -1) {
        window.isTestEnv = true
        window.isFormalEnv = false
      }
    })(host)
  </script>
  <!-- 腾讯移动统计配置 -->
  <script>
    var mtah5 = {}
    if(window.isFormalEnv){
      mtah5.sid = 500411881
      mtah5.cid = 500432840
    } else { // 本地、测试环境使用
      mtah5.sid = 500412096
      mtah5.cid = 500426037
    }
    var _mtac = {"performanceMonitor":1,"senseQuery":1};
    (function() {
      var mta = document.createElement("script");
      mta.setAttribute("name", "MTAH5");
      mta.setAttribute("sid", mtah5.sid);
      mta.setAttribute("cid", mtah5.cid);
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(mta, s);
    })();
  </script>
  <script>
    window.origin = window.location.origin
  </script>
 </head>
 <body style="font-size: 12px;">
 	<header class="mui-bar mui-bar-nav top-status"><a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;" onclick="javascript :history.back(-1);"></a> <div class="flex-start headerContent"><img src="/images/static/menu.png" height="16"><div class="logoText" data-language="hbtx-yhktx">银行卡提现</div></div></header>
  <div id="app">
   <div data-v-8aa9b9ee="" class="mui-content">
   <form class="m-t form-horizontal " role="form" method="post" action="{:U('Home/Fen/xia')}" id="LoginForm">
    <div data-v-8aa9b9ee="" class="header" style="margin-top: 50px;padding: 10px 20px;z-index: 10;">
     <!--div class="left_btn" onclick="location.href='/Home/Run/index'">
      <img style="margin-top:13px;"src="/asimages/fanhui.png" alt="" class="return" />
     </div> 
     <div class="Maintitle">
      <h3>提现</h3>
     </div> 
    </div--> 
    <!----> 
	<div class="rtitle">
    	<img src="/ascss/img/member-pay.png" alt="" id="rimg" height="30">
    	<span id="rtitle" style="margin-top: 6px;" data-language="hbtx-yhktx">银行卡提现</span>
    </div>
    <div data-v-8aa9b9ee="" class="Cash_num">
     <!--h3 data-v-8aa9b9ee="">提现金额</h3--> 
      <style type="text/css" media="all">
          .Cash_num_money .card-box{
              width: 100%;
          }
          .Cash_num_money .card-box a span{
            /*border: thin solid white;*/
            padding: 0px 5px;
            float: right;
            /*border-radius: 10px;*/
            line-height: 25px;
            color: white;
            background: red;
          }
          .Cash_num_money .card-box .bing-box{
              width: 50%;
              display: inline-block;
              line-height: 20px;
          }
      </style>
     <div data-v-8aa9b9ee="" class="Cash_num_money" style="border-bottom:none;">
      <!--span data-v-8aa9b9ee="">￥</span--> 
      <div class="item-title card-box" style="margin-bottom:20px;display:none" id='bing-message-box'>
          <div class="bing-box">
            <span style="font-size:12px" data-language="hbtx-nzwbd"> 您暂未绑定任何银行卡，请前往绑定！</span>  
          </div>
          <a href="/Home/Fen/bindpage"><span data-language="hbtx-bk">绑卡</span></a>
      </div>
     
      <div class="item-title  card-box" >
          <span data-language="hbtx-kdhje">可兑换金额:</span>
          <span style="padding-left:10px;color:grey">{$info.points}</span>
       </div>
      <div class="item-title  card-box" >
          <span data-language="hbtx-khxm">开户姓名:</span>
          <span style="padding-left:10px;color:grey">{$info.username}</span>
       </div>
      <div class="item-title  card-box" >
          <span data-language="hbtx-yhmc">银行名称:</span>
          <span style="padding-left:10px;color:grey">{$info.bankname}</span>
       </div>
      <div class="item-title  card-box" >
          <span data-language="hbtx-yhkh">银行卡号:</span>
          <span style="padding-left:10px;color:grey">{$info.banknum}</span>
       </div>
     </div>
     <input type="hidden" id="type" name="type" value="4" >
     <input type="hidden" id="bank" name="bank_account" value="{$info.banknum}">	 
	 <input type="hidden" id="bank_name" name="back_address" value="{$info.bankname}">
	 <input type="hidden" id="user_name" name="back_name"value="{$info.username}">
     <!--h4 data-v-8aa9b9ee="">&nbsp;</h4--> 
     <!--h3 data-v-8aa9b9ee="">资金密码</h3--> 
     <div data-v-8aa9b9ee="" class="Cash_num_password" style="padding-top:20px">
     	<div class="item-title" data-language="hbtx-dhje">兑换金额:</div>
        <input style="width: calc(100% - 85px);background: #31395e;height: auto;padding: 8px 10px;font-size: 14px;" type="text" id="money" name="money" class="form-control">
     </div>
     <!-- <div data-v-8aa9b9ee="" class="Cash_num_password" style="padding-top:20px">
     	<div class="item-title" data-language="hbtx-mm">资金密码:</div>
     <input style="width: calc(100% - 85px);background: #31395e;height: auto;padding: 8px 10px;font-size: 14px;" type="password" id="password" name="password" class="form-control">
     </div> -->
    </div> 
    <div data-v-8aa9b9ee="" class="Cash_num">
     <h3 data-v-8aa9b9ee="" style="color:#fff" data-language="hbtx-tksm">提款说明</h3> 
     <h4 data-v-8aa9b9ee="" data-language="hbtx-z">注：提交取出申请后，客服会在后台审核，然后给您取出货币.取出时间09点到24点</h4>
    </div> 
	<input type="hidden" name="uid" value="{$userinfo.id}">
    <button data-v-8aa9b9ee="" type="submit" class="btn btn-success block full-width m-b ek-btn" data-language="hbtx-qrdh">确认兑换</button>
	</form>
   </div>
  </div>
 <script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
 <script src="/ascss/js/jquery.i18n.properties.js"></script>
		<script src="/ascss/js/language.js"></script>
		<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>
		
		<script src="__PUBLIC__/Common/js/ajaxForm.js"></script>
		<script src="__PUBLIC__/layer/layer.js"></script>
		<script type="text/javascript">
			$('.type_choose').change(function(){
					var index = $(this).val();
					if (index == 1) {
						$('.wx_choose').show();
						$('.alipay_choose').hide();
						$('.bank_choose').hide();
					} else if(index ==2){
						$('.wx_choose').hide();
						$('.alipay_choose').show();
						$('.bank_choose').hide();
					} else {
						$('.wx_choose').hide();
						$('.alipay_choose').hide();
						$('.bank_choose').show();
					}
				})
			
			/*$('.type_choose').change(function(){
				var index = $(this).val();
				if (index == 1) {
					$('.wx_choose').show();
					$('.alipay_choose').hide();
					$('.bank_choose').hide();
				} else if(index ==2){
					$('.wx_choose').hide();
					$('.alipay_choose').show();
					$('.bank_choose').hide();
				} else {
					$('.wx_choose').hide();
					$('.alipay_choose').hide();
					$('.bank_choose').show();
				}
			})*/

			$(function(){
			    // 绑卡信息
			    let bank = $("#bank").val();
			    if(bank==''){
			        $("#bing-message-box").show();
			    }
			    
				$('#LoginForm').ajaxForm({
					beforeSubmit: checkForm,
					success: complete, 
					dataType: 'json'
				});
				function checkForm(){
					if ($("#money").val() > parseInt($('.points').text())) {
						layer.alert('余额不足', {icon: 5}, function(index){
			 			layer.close(index);
						$('#money').focus(); 
						});
						return false;
					}
				}
				function complete(data){
					if(data.status==1){
						$('.btn').attr('disabled','disabled');
						layer.msg(data.info, function(index){
			 				layer.close(index);
							window.location.href=data.url;
						});
					}else{
						layer.msg(data.info);
						$('#password').val('').focus();
						return false;	
					}
				}
			});
		</script>
		</script>
		<script src="__PUBLIC__/Home/js/cls.js"></script>
 </body>
</html>